package com.jic.finance.exception;

import com.jic.finance.enums.FinanceEmun;

public class FinanceException extends RuntimeException{

    private FinanceEmun financeEmun;

    private String message;

    public FinanceException(FinanceEmun financeEmun, String message) {
        super(message);
        this.financeEmun = financeEmun;
        this.message = message;
    }

    public FinanceEmun getFinanceEmun() {
        return financeEmun;
    }

    public void setFinanceEmun(FinanceEmun financeEmun) {
        this.financeEmun = financeEmun;
    }

    @Override
    public String getMessage() {
        return message;
    }

    public void setMessage(String message) {
        this.message = message;
    }
}
